'''
Created on 2009-12-10

@author: Jialai_Zhu
'''
import re
sample = r'''YTJJH='http://hfdihq.8800.org/asuhd/asuhd.css';'''
def get_str(data):
    p = re.compile(r'["\'](.*?)["\']')
    rr = p.findall(data)
    ret = ''
    for i in rr:
        return i
    return None
def find(str,ptn):
    for p in ptn:
        pos=str.find(p)
        if pos!=-1:
            return pos
    return -1       
    #        .groups()
#print get_str(sample)    
